<template>
  <div class="page-container">
    <el-scrollbar>
      <el-table :data="tableData" style="width: 100%">
        <el-table-column fixed label="Date" min-width="150" prop="date" />
        <el-table-column label="Name" min-width="120" prop="name" />
        <el-table-column label="State" min-width="120" prop="state" />
        <el-table-column label="City" min-width="120" prop="city" />
        <el-table-column label="Address" min-width="200" prop="address" />
        <el-table-column label="Zip" min-width="120" prop="zip" />
        <el-table-column fixed="right" label="Operations" min-width="120">
          <template #default>
            <el-button link size="small" type="primary" @click="handleClick">Detail</el-button>
            <el-button link size="small" type="primary">Edit</el-button>
          </template>
        </el-table-column>
      </el-table>
    </el-scrollbar>
  </div>
</template>

<script lang="ts" setup>
const handleClick = () => {}

const tableData = [
  {
    date: '2016-05-03',
    name: 'Tom',
    state: 'California',
    city: 'Los Angeles',
    address: 'No. 189, Grove St, Los Angeles',
    zip: 'CA 90036',
    tag: 'Home'
  },
  {
    date: '2016-05-02',
    name: 'Tom',
    state: 'California',
    city: 'Los Angeles',
    address: 'No. 189, Grove St, Los Angeles',
    zip: 'CA 90036',
    tag: 'Office'
  },
  {
    date: '2016-05-04',
    name: 'Tom',
    state: 'California',
    city: 'Los Angeles',
    address: 'No. 189, Grove St, Los Angeles',
    zip: 'CA 90036',
    tag: 'Home'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    state: 'California',
    city: 'Los Angeles',
    address: 'No. 189, Grove St, Los Angeles',
    zip: 'CA 90036',
    tag: 'Office'
  }
]
</script>

<style lang="scss" scoped>
.page-container {
}
</style>
